Method for computational graceful degradation in an audiovisual compression system

ABSTRACT

A method for encoding a visual object, includes encoding a visual object to obtain compressed coded data, wherein the compressed coded data is obtained through at least one of a plurality of different operations which can be performed on a block by block basis. A descriptor capable of including information of a respective parameter related to the number of times that each of the operations was performed in a unit of blocks is generated, the descriptor associated with a complexity of decoding the compressed coded data. The descriptor is multiplexed with the compressed coded data, wherein the descriptor comprises an identification number identifying a descriptor type, a length field indicating a size of the descriptor, and the parameter.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Divisional of U.S. application Ser. No.09/750,706, filed Jan. 2, 2001, which is a Divisional of U.S.application Ser. No. 09/176,104, filed Oct. 21, 1998, the contents ofwhich are herein incorporated by reference in their entireties.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a method for computational gracefuldegradation in an audiovisual compression system. This invention isuseful in a multimedia encoding and decoding environment where thecomputational demands for decoding a bitstream is not well defined. Itis also useful in cases where channel capacity is limited and some formof quality of service guarantee is required. It is also useful for interworking between two video services of different resolutions.

2. Description of the Related Art

It is common in the case of software decoding to employ some form ofgraceful degradation when the system resources is not sufficient tofully decode all of the video bitstream. These degradation ranges frompartial decoding of the picture elements to dropping of completepictures. This is easy to implement in the case of a single videostream.

In the proposed new ISO/IEC SC29/WG11 standard of MPEG-4, it is possibleto send multiple Audiovisual, AV, objects. Therefore, the totalcomplexity requirements no longer depend on one single stream but onmultiple streams.

In compression systems such as MPEG-1, MPEG-2 and MPEG-4, a high degreeof temporal redundancy is removed by employing motion compensation. Itis intuitive to see that successive pictures in a video sequence willcontain very similar information. Only regions of the picture that aremoving will change from picture to picture. Furthermore, these regionsusually move as a unit with uniform motion. Motion compensation is atechnique where the encoder and the decoder keep the reconstructedpicture as a reference for the prediction of the current picture beingencoded or decoded. The encoder mimics the decoder by implementing alocal decoder loop. Thus, keeping the reconstructed picture synchronizedbetween the encoder and decoder.

The encoder performs a search for a block in the reconstructed picturethat gives the closest match to the current block that is being encoded.It then computes the prediction difference between the motioncompensated block and the current block being encoded. Since the motioncompensated block is available in the encoder and the decoder, theencoder only needs to send the location of this block and the predictiondifference to the decoder. The location of the block is commonlyreferred to as the motion vector. The prediction difference is commonlyreferred to as the motion compensated prediction error. Theseinformation requires less bits to send that the current block itself.

In intra-picture coding, spatial redundancy may be removed in a similarway. The transform coefficients of the block can be predicted from thetransform prediction of its neighboring blocks that have already beingdecoded.

There are two major problems to be solved in this invention. The firstis how to indicate the decoding complexity requirements of the currentAV object. In the case where there are multiple AV objects, the systemsdecoder must decide how much resource should be given to a particularobject and which object should have priority over another. In otherwords, how to model the complexity requirements of the system. A pointto be noted here is that the complexity requirements of the decoder isdependent on the implementation of the decoder. An operation that iscomplex for one implementation may be simple for another implementation.Therefore, some form of implementation independent complexity measure isrequired.

The second problem is how to reduce complexity requirements in thedecoder. This deals with the method of reducing the complexityrequirements of the decoding process while retaining as much of theinformation as possible. One biggest problem in graceful degradation isthe problem of drift caused by errors in the motion compensation. Whengraceful degradation is employed the reconstructed picture is incompleteor noisy. These errors are propagated from picture to picture resultingin larger and larger errors. This noise propagation is referred to asdrift.

SUMMARY OF THE INVENTION

In order to solve the problems the following steps are taken in thepresent invention.

The AV object encoder encodes the AV object in a manner that would allowdifferent amounts of graceful degradation to be employed in the AVobject decoder. Parameters relating to the computational complexityrequirements of the AV objects are transmitted in the systems encoder.Implementation independent complexity measure is achieved by sendingparameters that gives an indication of the operations that are required.

At the systems decoder, estimates of the complexity required are madebased on these parameters as well as the implementation methods beingemployed. The resource scheduler then allocates the appropriate amountof resources to the decoding of the different AV objects. In the AVobject decoder, computational graceful degradation is employed when theresources are not sufficient to decode the AV object completely.

In accordance with a first aspect of the present invention, a method ofencoding a plurality of audiovisual objects into a compressed codedrepresentation suitable for computational graceful degradation at thedecoder comprises:

encoding said audiovisual objects, incorporation methods allowingcomputational graceful degradation to be employed in the decoder, intotheir coded representations;

estimating the implementation independent computational complexitymeasures in terms of a plurality of block decoding parameters;

partitioning said coded representations of the audiovisual objects intoa plurality of access units and adding header information to formpackets;

inserting a descriptor containing said block decoding parameters intothe header of the packet; and

multiplexing these packets to form a single multiplexed bitstream.

In accordance with a second aspect of the present invention, a method ofdecoding a multiplexed bitstream, with computational gracefuldegradation, to obtained a plurality of audiovisual objects, comprises:

de-multiplexing the single multiplexed bitstream into a plurality ofpackets comprising of packet headers and access units;

extracting the descriptor containing a plurality of block decodingparameters from the packet headers;

reassembling the access units into their original coded representationsof the audiovisual objects;

estimating the decoder specific computational complexity measures basedon said block decoding parameters and the current decoderimplementation; and

decoding said coded representations of the audiovisual objects, usingcomputational graceful degradation, where necessary, to satisfy theestimated decoder specific computational complexity requirements.

Preferably, the incorporation methods allowing computational gracefuldegradation to be employed in the decoder, comprise:

partitioning the input pictures to be encoded into a plurality ofsub-regions numbered in increasing order, beginning with the fullpicture as the first sub-region, where each sub-region comprising onlyof a subset of the pixels within the sub-region preceding it;

entropy coding the position and dimension of the sub-regions into acompressed coded representation within the bitstream;

further partitioning the sub-regions into a plurality of blocks forencoding into a compressed coded representation within the bitstream;

performing motion estimation and motion compensation for said blocksusing only the pixels from the reconstructed picture that belong tosub-regions having the same or higher numeric order as said blocks,

entropy coding the motion vectors into a compressed coded representationwithin the bitstream;

transforming the motion compensated prediction difference into anorthogonal domain;

quantizing the transformed coefficients using a quantization method;and,

entropy coding the quantized transformed coefficients into a compressedcoded representation within the bitstream.

Preferably, the method for decoding the coded representations of theaudiovisual objects in accordance with the second aspect, usingcomputational graceful degradation where necessary to satisfy theestimated decoder specific computational complexity requirements,further comprises:

entropy decoding the position and dimension of the sub-regions from thecompressed coded representation within the bitstream;

selecting only the blocks that are within the sub-region of interest fordecoding;

entropy decoding the compressed coded representation to give quantizedtransformed coefficients;

inverse quantizing said quantized transformed coefficients to give thetransformed coefficients;

inverse transforming said transform coefficients to give the spatialdomain motion compensated prediction difference;

entropy decoding the motion vectors from the compressed codedrepresentation within the bitstream;

performing motion compensation for said blocks using only the pixelsfrom the reconstructed picture that belong to sub-regions having thesame or higher numeric order as said blocks; and,

reconstructing the picture and storing said picture -in the frame memoryfor prediction of the next picture.

Preferably, the method in accordance with the first aspect of theinvention, whereby incorporation methods allowing computational gracefuldegradation to be employed in the decoder, further comprises:

partitioning the input pictures to be encoded into a plurality ofsub-regions numbered in increasing order, beginning with the fullpicture as the first sub-region, where each. sub-region comprising onlyof a subset of the pixels within the sub-region preceding it;

entropy coding the position and dimension of the sub-regions into acompressed coded representation within the bitstream;

further partitioning the sub-regions into a plurality of blocks forencoding into a compressed coded representation within the bitstream;

transforming said blocks into an orthogonal domain;

quantizing the transformed coefficients using a quantization method;

performing quantized transform coefficient prediction for said blocksusing only the corresponding quantized transform coefficients from theblocks above and to the left that belong to sub-regions having the sameor higher numeric order as said blocks; and,

entropy coding the predicted difference of the quantized transformedcoefficients into a compressed coded representation within thebitstream.

Preferably, the method in accordance with the first aspect of theinvention, comprises:

entropy decoding the position and dimension of the sub-regions from thecompressed coded representation within the bitstream;

selecting only the blocks that are within the sub-region of interest fordecoding;

entropy decoding the compressed coded representation to give quantizedtransformed coefficients;

performing quantized transform coefficient prediction for said blocksusing only the corresponding quantized transform coefficients from theblocks above and to the left that belong to sub-regions having the sameor higher numeric order as said blocks;

inverse quantizing said quantized transformed coefficients to give thetransformed coefficients;

inverse transforming said transform coefficients to give the spatialdomain pixel values; and,

reconstructing the picture and storing said picture in the frame memoryfor prediction of the next picture.

Typically, the plurality of block decoding parameters comprises numericnumbers indicating the number of:

block entropy decoding operations;

block motion compensation operation;

block inverse quantization operations;

block transform operations;

block addition operations; and,

block memory access operations.

Preferably, the descriptor comprises:

a descriptor identification number signaling the descriptor type;

a descriptor length field to indicate the size of the descriptor; and,

a plurality of block decoding parameters.

Typically, in the method of partitioning the input pictures to beencoded into a plurality of sub-regions, the sub-regions arerectangular.

Preferably, in the method of performing motion estimation and motioncompensation for said blocks, using only the pixels from thereconstructed picture that belong to sub-regions having the same orhigher numeric order as said blocks, implies that only prediction blocksthat lie completely within said sub-regions are selected.

Typically, when only the pixels from the reconstructed picture thatbelong to sub-regions having the same or higher numeric order as saidblocks are used, prediction blocks may lie partially outside saidsub-regions but with the additional condition that the pixels lyingoutside said sub-region are replaced by the nearest pixels from withinthe sub-regions.

Preferably, in the method of partitioning the pictures into a pluralityof sub-regions, the position and dimension of each of said sub-regionsmay vary from picture to picture and said position and said dimensionare coded by means of a pan scan vector, giving the horizontal andvertical displacement, a width and a height.

Typically, in the method of partitioning the pictures into a pluralityof sub-regions, the position and dimension of the sub regions are thesame from picture to picture and said position and said dimension arecoded once at the beginning of the sequence by means of a horizontal andvertical displacement, a width and a height.

Preferably, in the method of encoding and decoding, the transform is theDiscrete Cosine Transform.

Typically, in the method of encoding and decoding, the number ofsub-regions is two.

Preferably, in the method where there is a plurality of sub-regionnumbered in increasing order and the motion vector can point into asub-region of lower order but not out of a lower order to a higherordered number.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an overall block diagram of the present invention;

FIG. 2 shows a block diagram of encoder and decoder of the presentinvention;

FIG. 3 illustrates the embodiment of the sub-region and the motionvector restriction of the present invention;

FIG. 4 illustrates the embodiment for the pan-scan vectors and thesub-region dimensions in the present invention;

FIG. 5 illustrates the second embodiment for the padding method of themotion compensated prediction at the sub-region boundary; and,

FIG. 6 illustrates the block diagram for the Complexity Estimator.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

FIG. 1 shows an overall system block diagram of the present invention.Encoder unit 110 encodes the video sequence to allow computationalgraceful degradation techniques. The output of encoder 110 is a codedrepresentation of the video sequence that is applied to an encodingbuffer 120. At the same time the video sequence and the codedrepresentation are also applied to a complexity parameter encoder 130where the parameters associated with the operation that are required fordecoding is computed and encoded. These information together with theoutput of the encoding buffer 120 are passed to a System Encoder andMultiplexer unit 140 where a system-multiplexed stream is formed. Thesystem-multiplexed stream is transmitted through a transmission media150.

A Demultiplexer and System Decoder unit 160 receives thesystem-multiplexed stream, where the bitstream is demultiplexed into itsrespective elementary streams. The video elementary stream is passed toa Decoding Buffer 170, and complexity parameters are passed to aScheduler and Complexity Estimator unit 180. From the Decoding Buffer170, the video elementary stream is passed to a Decoder unit 190. Thedecoder 190 waits for the commands coming from the Scheduler unit 180before decoding.

The Complexity Estimator 180 gives the amount of decoder computationalgraceful degradation that is to be employed. Computational gracefuldegradation is achieved in the decoder by decoding only a sub-region ofthe complete picture that is deemed to contain the more importantinformation. The encoder will have to prevent the encoder and decoderfrom drifting apart under these conditions. After decoding, the decoderunit 190 also feedback information to the Scheduler and ComplexityEstimator 180 so that the information may be used to estimate thecomplexity of the next picture.

The following is the embodiment of the various units illustrated in theabove invention shown in FIG. 1.

FIG. 2 is a block diagram of the encoder and decoder according to thepresent embodiment. The input picture to the encoder 110 is segmentedinto blocks for processing. Temporal redundancy is removed from thepicture by subtracting the motion compensated picture of the previouspicture from the current picture. The prediction difference is thentransformed into the DCT domain in a DCT unit 111. The resulting DCTcoefficients are then quantized in a Quantization unit 112. Thequantized coefficients are then entropy coded in a Variable LengthCoding (VLC) unit 113 to form the compressed output bitstream. Theencoder 110 also has a local decoder loop comprising of an InverseQuantization unit 114, an Inverse DCT unit 115, a Frame Storage 116, anda Motion Compensation unit 117. The local decoder loops mimics thedecoder operations by inverse quantizing the coefficients andtransforming it back into the spatial domain in the Inverse Quantizationunit 114 and Inverse DCT unit 115. The output is then added to theoutput of the Motion Compensated unit 117 to form the reconstructedpicture. This picture is stored in the Frame Storage 116 for motioncompensation of the next picture.

In this embodiment the encoder units of Motion Estimation unit 118 andMotion Compensation unit 117 are changed so that computational gracefuldegradation may be performed in conjunction with the motion compensationwithout causing drift.

FIG. 3 illustrates the present invention, according to which the pictureis divided into two parts 220 and 210. The first part 220 is asub-region that must be decoded in the decoder regardless of whethercomputational graceful degradation is employed or not. The second part210 is the region outside of the sub-region, which may be discarded bythe decoder when computational graceful degradation is employed.

FIG. 3 also show two blocks that are used for motion compensation. Whenmotion compensation is performed on a block 250 that resides in thesub-region 220, the motion compensated prediction block must also comefrom within the sub-region 220 of the reference picture. In other wordsthe motion vector 260 pointing out of the region is not allowed. This isreferred to restricted motion vector. On the other hand, when a block230 resides outside the sub-region 220, the motion compensatedprediction block can come from anywhere in the reference picture. Thisis the same as where there is no sub-region.

FIG. 4 shows a method how to indicate the sub-region 220 within eachpicture. In order to specify the rectangular sub-region 220 for eachpicture the following parameters must be specified for each picture andbe encoded in the picture header of the compress bitstream. In FIG. 4, apicture 310 and the sub-region 220 is illustrated. The horizontal offset330 of the left edge of sub-region 220 from the left edge of thepicture, and the vertical offset 340 of the top edge of the sub-region220 from the top edge of the picture are shown. These two parameters,referred to as the pan scan vectors, are used to indicate the locationof the sub-region. The width 350 and the height 360 of the sub-region220 are the second set of parameters that are required to specify thedimensions of the sub-region 220.

In a second embodiment of this invention, the motion vector for a blockin the sub-region need not be restricted. It is allowed to point out ofthe sub-region of the reference picture. However padding is required.This is illustrated in FIG. 5 in which the picture 310 and thesub-region 220 are shown. The motion compensated prediction 430 is shownstraddling the boundary of the sub-region 220. A portion 431 of theblock residing outside of the sub-region 220 is not used for predictionand is padded by repeating the value of the pixel found at the edge ofthe sub-region 220. A portion 432 of the block residing in thesub-region 220 is used without any padding. A similar padding method isused for the rows and columns for blocks located at the vertical edgeand horizontal edge, respectively.

Like the first embodiment, the method according to the second embodimentwould also enable computational graceful degradation method to discardthe portion of the picture outside the sub-region 220 without causingthe encoder and decoder to drift apart.

Apart from motion compensation that may cause drift in inter blocks,intra blocks at the top and left boundary of the sub-region 220 are alsorestricted from using any blocks outside of the sub-region 220 forprediction. This is because in the computational graceful degradeddecoder, these blocks would not be decoded and thus the predictioncannot be duplicated. This precludes the commonly used DC and ACcoefficient prediction from being employed in the encoder.

FIG. 2 also illustrates a block diagram of a decoder 190. The embodimentof the decoder 190 employing computational graceful degradation isdescribed here. The compressed bitstream is received from thetransmission and is passed to a Variable Length Decoder unit 191 wherethe bitstream is decoded according to the syntax and entropy methodused. The decoded information is then passed to the ComputationalGraceful Degradation Selector 192 where the decoded informationbelonging to the sub-region 220 is retained and the decoded informationoutside of the sub-region 220 is discarded. The retained information isthen passed to an Inverse Quantization unit 193 where the DCTcoefficients are recovered. The recovered coefficients are then passedto an Inverse DCT unit 194 where the coefficients are transformed backto the spatial domain. The motion compensated prediction is then addedto form the reconstructed picture. The reconstructed picture is storedin a Frame Storage 195 where it is used for the prediction of the nextpicture. A Motion compensation unit 196 performs the motion compensationaccording to the same method employed in the encoder 110.

In the first embodiment of the encoder where the motion vector isrestricted, no additional modification is required in the decoder. Inthe second embodiment of the encoder where the motion vector is notrestricted, the motion compensation method with padding described abovein connection with FIG. 5 is used in the decoder. Finally, intra blocksat the top and left boundary of the sub-region 220 are also restrictedfrom using any blocks outside of the sub-region 200 for prediction. Thisprecludes the commonly used DC and AC coefficient prediction from beingemployed.

In this embodiment the Complexity Parameter Encoder consist of acounting unit that counts the number of block decoding operations thatare required. The block decoding operations are not basic arithmeticoperations but rather a collection of operations that are performed on ablock. A block decoding operation can be a block inverse quantizationoperation, a block inverse DCT operation, a block memory access or someother collection of operations that perform some decoding task on theblock by block basis. The Complexity Parameter Encoder counts the numberof blocks that require each set of operations and indicate these in theparameters. The reason block decoding operations are used instead ofsimple arithmetic operations is because different implementations mayimplement different operations more efficiently than others.

There is also a difference in decoder architecture and different amountsof hardware and software solutions that makes the use of raw processingpower and memory access measures unreliable to indicate the complexityrequirements. However, if the operations required are indicated byparameters that counts the number of block decoding operationsnecessary, the decoder can estimate the complexity. This is because thedecoder knows the amount of operations required for each of the blockdecoding operations in its own implementation.

In the embodiment of the System Encoder and Multiplexer, the elementarybitstream are packetized and multiplexed for transmission. Theinformation associated with the complexity parameters is alsomultiplexed into the bitstream. This information is inserted into theheader of the packets. Decoders that do not require such information maysimply skip over this information. Decoders that require suchinformation can decode this information and interpret them to estimatethe complexity requirements.

In this embodiment the encoder inserts the information in the form of adescriptor in the header of the packet. The descriptor contains an ID toindicate the type of descriptor it is followed by the total number ofbytes contained in the descriptor. The rest of the descriptor containsthe parameter for each of the block decoding operations. Optionally thedescriptor may also carry some user defined parameters that are notdefined earlier.

In the Scheduler and Complexity Estimator 180 in FIG. 1, the time ittakes for decoding all the audiovisual objects is computed based on theparameters found in the descriptor as well as the feedback informationfrom the decoder.

An embodiment of the Complexity Estimator 180 is shown in FIG. 6. Theblock decoding operation parameters 181 a, 181 b and 181 c are passedinto the complexity estimator 183 after being pre-multiplied withweightings 182 a, 182 b and 182 c, respectively. The complexityestimator 183 then estimates the complexity of the picture to be decoderand passes the estimated complexity 184 to the decoder 190. Afterdecoding the picture the decoder 190 returns the actual complexity 185of the picture. An error 186 in the complexity estimation is obtained bytaking a difference between the estimated complexity 184 and the actualcomplexity 185 of the picture. The error 186 is then passed into thefeedback gain unit 187 where the corrections 188 a, 188 b and 188 c tothe weightings are found. The weights are then modified by thesecorrections and the process of estimating the complexity of the nextpicture continues.

The effect of this invention is that the need for implementations thatcan handle the worst case is no longer necessary. Using the indicationsof computational complexities and the computational graceful degradationmethods simpler decoders can be implemented. The decoder would have thecapabilities to decode most of the sequences, but if it encounters somemore demanding sequences, it can degrade the quality and resolution ofthe decoder output in order to decode the bitstream.

This invention is also useful for inter working of services that havedifferent resolutions and/or different formats. The sub-region can bedecoder by the decoder of lower resolutions where as the decoder ofhigher resolutions can decode the full picture. One example is the interworking between 16:9 and 4:3 aspect ratio decoders.

What is claimed is:
 1. A method for encoding a visual object,comprising: encoding a visual object to obtain compressed coded data,wherein the compressed coded data is obtained through at least one of aplurality of different operations which can be performed on a block byblock basis; generating a descriptor capable of including information ofa respective parameter related to the number of times that each of saidoperations was performed in a unit of blocks, said descriptor associatedwith a complexity of decoding the compressed coded data; andmultiplexing the descriptor with the compressed coded data wherein thedescriptor comprises; an identification number identifying a descriptortype; a length field indicating a size of the descriptor; and theparameter.
 2. A method for encoding a visual object having a pluralityof pictures, comprising: encoding a visual object to obtain compressedcoded data, wherein the compressed coded data is obtained throughsegmenting each picture in a plurality of blocks and through performingat least one of a plurality of different operations on a block by blockbasis; generating a descriptor including a parameter related to thenumber of times that each of said operations was performed duringencoding said picture, said descriptor associated with a complexity ofdecoding the compressed coded data; and multiplexing the descriptor withthe compressed coded data wherein the descriptor comprises; anidentification number identifying a descriptor type; a length fieldindicating a size of the descriptor; and the parameter.